package pta;/**
 * @author： li
 * @date： 2022-03-31 21:13
 * @version 1.0
 */
import java.util.*;
public class 太胖了 {
    public static void main(String[] args) {
        Scanner sc = new Scanner(System.in);
        int n =sc.nextInt();
        while(n>0){
            int h =sc.nextInt();
            double w =sc.nextDouble();
            w=w*0.5;
            double b =(h-100)*0.9;
            if(Math.abs(w-b)<b*0.1)
                System.out.println("You are wan mei!");
            else if(w<b)
                System.out.println("You are tai shou le!");
            else
                System.out.println("You are tai pang le!");
            n--;
        }
    }
}
